<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        if(10>5){
            console.log("ok");
        }else{
            console.log("no");
        }

        var money=50;
        if(money>90){
            console.log("吃火锅");
        }else if(money>80){
            console.log("吃烧烤");
        }else if(money>60){
            console.log("吃饭饭");
        }else{
            console.log("不吃了");
        }

        var i=3;
        switch(i){
            case 1:
                console.log("棒!");
                break;

            case 2:
                console.log("好!");
                break;

            case 3:
                console.log("ok!");
                break;

            default:
                console.log("no!");
        }

        for(var i=1;i<=10;i++){
            console.log(i)
        }

        var j=10;
        while(j>0){
            console.log(j);
            j--;
        }
    </script>
</body>
</html>